package sample8;

import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Frame;
import java.awt.Label;
import java.awt.TextArea;

public class ComponentFrameShower {
	public static void main(String[] args) {
		Frame f = new Frame();
		f.setLayout(new BorderLayout());
		f.setBounds(100, 100, 400, 300);
		Button b = new Button("Press me!");
		f.add(b, BorderLayout.NORTH);
		TextArea t = new TextArea("Write in me!");
		f.add(t, BorderLayout.CENTER);
		Label l = new Label("Just read me!", Label.CENTER);
		f.add(l, BorderLayout.SOUTH);
		f.setVisible(true);
	}

}